<?php
     @session_start();
    include("template/head.php");

?>
    <div class="container-fluid">
        <div class="row-fluid">
                
        <?php include("template/menu_left.php") ?>                
        
        <div class="span10" id="content">
        	 
                
            <div class="row-fluid">
              

            <!-- block -->
                <!--  ************************ ROW ************************  -->
              <div class="span12"> 
              	
				<?php 
	             	if ((isset($_GET["action"])) && ($_GET["action"] == "errorExist"))
	                {
	                echo'
	                <div class="alert alert-success col-lg-7" style="margin:10px;">
	                    Type d\'article <b>'.$_GET['type'].'</b> existe déja <button type="button" class="close" data-dismiss="alert">&times;</button>
	                </div>
	                ';
	                }
					if ((isset($_GET["action"])) && ($_GET["action"] == "addedError"))
	                {
	                echo'
	                <div class="alert alert-danger col-lg-7" style="margin:10px;">
	                    Type de produit existe déja <button type="button" class="close" data-dismiss="alert">&times;</button>
	                </div>
	                ';
	                }
				?>
		
                 <div class="block">
                 	<form id="formAddIntervention" class="form-horizontal" method="POST" action="submit/gestion_type_article/add_type_article.php">
                    <div class="navbar navbar-inner block-header">
                        <div class="muted pull-left">Ajouter un type d'article : </div>
                        <!-- .toolbar -->
                    </div>   
                    <div class="block-content in" id="div-1">
                    	<br><br>
                    <div class="control-group">  
                        <label class="control-label span2" for="ref_article">Type Article :</label>
                          <div class="controls">
                            <input type="text" placeholder="Type Article" class="validate[required] form-control span6" name="type_article"/>
                          </div>
                    </div>
                    
                   <div class="control-group">  
                        <label class="control-label span2" for="ref_article">Description :</label>
                          <div class="controls">
							<textarea id="desc_article" name="desc_article" placeholder="description" class="form-control span6"></textarea>
                          </div>
                    </div>
                                         <!-- /.control-group -->
                    </div>
                    </div>
                    <input class="span2 btn btn-primary " type="submit" value="Ajouter" style="margin-bottom:1em; float: right;">
                   </form>
              </div>

            <!--  ************************ / ROW ************************  -->
            <!-- block -->
               
                    
              
          
          
          </div>
            <hr>
        </div>
<?php  include("template/footer_form.php") ; ?>